package com.hen.web.henweb.model.enumeration;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * @author 狠穿
 * @version 1.0.0
 * @date 2023/5/1
 * @function 性别枚举
 */
public enum SexEnum {

    MAN(0,"男"),
    WOMAN(1,"女"),
    UNKNOW(-1,"未知");

    @EnumValue
    private int value;

    @JsonValue
    private String label;

    SexEnum(int value, String label) {
        this.value = value;
        this.label = label;
    }

    public int getValue() {
        return value;
    }

    public String getLabel() {
        return label;
    }
}
